// 云函数入口文件
const cloud = require('wx-server-sdk')
const got = require('got'); 

cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
  const wxContext = await got(event.url,{
      method:'POST',
      headers:{
        'Content-Type': "application/json"
      },
      body:JSON.stringify(event)
  })
  let response =JSON.parse(wxContext.body);
  return response;
}